public class Day4 {
    public static void main(String[] args)
    {
        System.out.println("Testing tripleValue:");
        double percent = 10;
        System.out.println("Before tripleValue: " + percent + "%");
        tripleValue(percent);
        System.out.println("After tripleValue: " + percent + "%");

        Employee p1 = new Employee("lihua", 50.5,2002,10,22);
        Employee p2 = new Employee("meimie", 5.5,1992,1,2);
        System.out.println("Before Value: " + p1.getName() + " " + p2.getName());
        swap(p1, p2);
        System.out.println("After Value: " + p1.getName() + " " + p2.getName());

        Employee em = new Employee("lihua", 50.5,2002,10,22);
        add(em);
        System.out.println("After Value: " + em.getSalary() );
    }

    public static void swap(Employee a, Employee b)
    {
        Employee tmp = b;
        b = a;
        a = tmp;
        System.out.println("InSwap Value: " + a.getName() + " " + b.getName());

    }

    public static void tripleValue(double percent)
    {
        percent *= 3;
    }

    public static void add(Employee e)
    {
        e.salary++;
    }

}
